<template>
	<view v-if="list.length > 0">
		<swiper class="swiper" :circular="true" :indicator-dots="false" :autoplay="true" :interval="4000" :duration="500">
		    <swiper-item class="swiper-item" v-for="(item, index) in list" :key="index">
		        <view class="card">
					<rich-text :nodes="item"></rich-text>
				</view>
		    </swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default{
		name: 'headerSwiper',
		props:{
			list: Array
		}
	}
</script>

<style lang="scss" scoped>
	.swiper{
		width: 100%;
		height: 100rpx;
		.swiper-item{
			width: 100%;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 40rpx;
			padding: 10rpx;
			box-sizing: border-box;
		}
	}
</style>
